package com.stockz.equity.charting.util;

import java.awt.Color;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

public abstract class Constant {

	public static final NumberFormat priceNumberFormat = new DecimalFormat("#0.00");
	public static final NumberFormat volumeNumberFormat = new DecimalFormat("#0.0");
	public static final DateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy");
	public static final List<Color> colorList = new ArrayList<Color>();
	
	static{
		float i = 0.2f;
		for(float f = 0.5f ; f+i < 1; f+=i){
			colorList.add(new Color(f,f,f+i,1));
			colorList.add(new Color(f,f+i,f,1));
			colorList.add(new Color(f+i,f,f,1));
			colorList.add(new Color(f,f,f,1));
			colorList.add(new Color(f+i,f+i,f,1));
			colorList.add(new Color(f,f+i,f+i,1));
			colorList.add(new Color(f+i,f,f+i,1));
		}
	}
	
	public static enum OVERLAY{
		PRICE,
		VOLUME,
		INDEPENDENT
	};
	
	public static enum TIME_UNIT{
		DAILY,
		WEEKLY,
		MONTHLY,
		QUARTERLY,
		YEARLY,
		POINT_AND_FIGURE,
		CUSTOM
	};
	
	public static enum VOLUME_DISPLAY_TYPE{
		BAR,
		LINE,
		RECTANGLE,
	}
}
